-- shop
-- created by panyl
-- 地精商店出售商品数量增加，增加的商品阶位概率提升

return {
    apply = function(prop, baseValue)
        return baseValue - math.modf(baseValue * prop[3] / 1000);
    end,

    desc = function(prop)
        local data = PropM.query(prop[1], "desc");
        local normal = data.normal;
        local immunity = data.immunity;
        local desc = normal;
        if prop[3] >= 1000 then
            desc = immunity;
        end

        local ret = string.gsub(desc, "{1}", prop[3] / 10);

        return ret;

    end,

    record = function(target, prop, path)
        return false;
    end
};
